package com.gsit.ocraspect.controller;

import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/demo")
public class DemoController {
	
	private static final Logger logger = LoggerFactory.getLogger(DemoController.class);
	
	@RequestMapping(value = "/demo", method = RequestMethod.GET)
	public String demo(Locale locale, Model model) {
		logger.info("This is demo controller "+ locale.toString());
		return "demo";
	}

}
